package com.linfnn.demo.Controller;

import com.linfnn.demo.Model.Assessment;
import com.linfnn.demo.Service.AssessmentService;
import com.linfnn.demo.Service.impl.AdminUserServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.servlet.ModelAndView;

import java.util.List;

@Controller
public class manage {
//    @Autowired
//    AdminUserServiceImpl adminUserServiceImpl;
//    @Autowired
//    AssessmentService assessmentServiceImpl;
//
//
//    @RequestMapping(value = "/manage_assessments")
////    @ResponseBody 不为这个注解的时候，返回的字符串为跳转到返回的页面
//    public ModelAndView showAll() {
//          List<Assessment> assessments = assessmentServiceImpl.list();
//          ModelAndView mav = new ModelAndView("/assessmentManage.html");
//          mav.addObject("results", assessments);
//          return mav;
//    }
//


}



